package com.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bbs.dto.LoginFormDTO;
import com.bbs.dto.Result;
import com.bbs.dto.UserDTO;
import com.bbs.dto.UserQueryDTO;
import com.bbs.entity.User;
import com.bbs.vo.UserVO;

import java.util.List;

public interface UserService extends IService<User> {
    UserVO createUser(UserDTO userDTO);
    UserVO getUserById(Long id);
    List<UserVO> getAllUsers();
    UserVO updateUser(Long id, UserDTO userDTO);
    void deleteUser(Long id);
    UserVO getUserByUsername(String username);

    Result sendCode(String phone);

    Result loginByCode(LoginFormDTO loginFormDTO);

    Result sign();

    Integer signCount();

    Result queryUsers(UserQueryDTO userQueryDTO);
}